package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("light_operation_log")
public class LightOperationLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("light_id")
    private Long lightId;
    
    @TableField("greenhouse_id")
    private Long greenhouseId = 1L;
    
    @TableField("is_on")
    private String isOn;
    
    @TableField("operator_id")
    private Long operatorId;
    
    @TableField("operate_time")
    private LocalDateTime operateTime = LocalDateTime.now();
}